<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
        {% block title %}

        {% endblock %}
        <link rel="shortcut icon" href="/static/img/m.ico" type="image/x-icon" />
        <link href="/static/css/shouwei.css" rel="stylesheet" type="text/css">
        <script src="/static/js/jquery-1.12.3.js"></script>
        <script src="/static/js/headerbar.js"></script>
        <script src="/static/js/jquery.cookie.js"></script>
        {% block cssjs %}

        {% endblock %}

	</head>
	<body>

		<!--  公共头部  -->
		<div class="header">
			<div class="headerbar">
				<div class="hb_content">
                <div class="hb_con_left" style="width: 300px">
                <a href="{% url 'index:info' %}">首页</a>
                {% if not request.user %}
                    <a href="{% url 'index:register' %}" class="register">注册</a>
                    <a href="{% url 'index:login' %}" class="login">登录</a>


                {% else %}

                    <a href="#">用户{{ request.user.username }} : 您好</a> |
                    <a href="{% url 'index:logout' %}">退出登录</a> |
                    <a href="">订单查询</a>
                {% endif %}

            </div>

					<div class="hb_con_right" >
						<p>客服热线：4000-250-630</p>
						<div class="follow">
							<img src="/static/img/star.png" alt="">
							<span>关注我们</span>
							<div class="share">
								<a href="" class="sina" >
									<img src="/static/img/fou_sina.gif" alt=""/>
									<span>新浪微博</span>
								</a>
								<a href="" class="weixin">
									<img src="/static/img/fou_wechat.gif" alt=""/>
									<span>美西微信</span>
								</a>
							</div>
						</div>
                        {% block cart %}

							
						{% endblock %}
							
						</div>
					</div>
				</div>
			</div>
			<div class="header_top">
				<div class="meiciapp">
					<a href=""><img src="/static/img/ewm_indexTop.png" alt=""/></a>
					<span><img src="/static/img/ewm_txt.png" alt=""/></span>
				</div>
				<div class="logo">
					<img src="/static/img/logo_new.png" alt=""/>
				</div>
				<div class="search">
					<input type="text" placeholder="请输入您的关键词" maxlength="20"/>
					<img src="/static/img/search.png" alt=""/>
				</div>
			</div>
			{% block content %}
			
			{% endblock %}
		</div>
		<!--  内容  -->
		{% block main %}
		
		{% endblock %}
		<!--  公共尾部  -->
		<div class="footer">
			{% block help %}
			
			{% endblock %}
			<div class="sub_nav">
				<ul class="clearfix">
					<li><a href="{% url 'index:info' %}" class="clearfix_a">首页</a></li>
					<li><a href="" class="clearfix_a">关于美西</a></li>
					<li><a href="" class="clearfix_a">媒体报道</a></li>
					<li><a href="" class="clearfix_a">正品保障</a></li>
					<li><a href="" class="clearfix_a">业务合作</a></li>
					<li><a href="" class="clearfix_a">隐私声明</a></li>
					<li><a href="" class="clearfix_a">加入美西</a></li>
					<li><a href="" class="clearfix_a">网站地图</a></li>
					<li><a href="" class="clearfix_a">联系我们</a></li>
				</ul>
			</div>
			{% block links %}

			{% endblock %}
			<div class="copyright">
				<p>
					Copyright © 2008-2016 美西时尚-
					<a href="">高端时尚生活电商</a>
				</p>
				<p>
					<a href="">
						沪ICP备09001221号
					</a>
				</p>
			</div>
			<div class="safe">
				<a href=""><img src="/static/img/hy_83x30.png" alt="" /></a>
				<a href=""><img src="/static/img/ssgs.gif" alt="" /></a>
			</div>
		</div>
	</body>
</html>
